// 任务类型常量
export const job_type = [
    { label: '远程请求', value: 0, elTagType: 'text', elTagClass: 'primary', themeClass: 'dark' },
    { label: '本地程序', value: 1, elTagType: 'text', elTagClass: 'primary', themeClass: 'dark' }
];

// 触发器类型常量
export const trigger_type = [
    { label: '简单模式', value: 'simple', elTagType: 'text', elTagClass: 'primary', themeClass: 'dark' },
    { label: 'Cron模式', value: 'cron', elTagType: 'text', elTagClass: 'primary', themeClass: 'dark' }
];


//任务状态
export const scheduler_status = [
    { label: '待启动', value: 0, elTagType: 'text', elTagClass: 'info', themeClass: 'dark' },
    { label: '正常', value: 1, elTagType: 'text', elTagClass: 'success', themeClass: 'dark' },
    { label: '正在运行', value: 2, elTagType: 'text', elTagClass: 'success', themeClass: 'dark' },
    { label: '已暂停', value: 3, elTagType: 'text', elTagClass: 'warning', themeClass: 'dark' },
    { label: '已完成', value: 200, elTagType: 'text', elTagClass: 'success', themeClass: 'dark' },
]

//启动方式
export const startup_type = [
    { label: '手动', value: 0, elTagType: 'tag', elTagClass: 'info', themeClass: 'dark' },
    { label: '即刻', value: 1, elTagType: 'tag', elTagClass: 'info', themeClass: 'dark' },
    { label: '预约', value: 2, elTagType: 'tag', elTagClass: 'info', themeClass: 'dark' },
]

//刷新频率
export const frequency_options = [
    { label: '不刷新', value: 0 },
    { label: '5s', value: 5 },
    { label: '10s', value: 10 },
    { label: '30s', value: 30 },
    { label: '1分钟', value: 60 },
    { label: '5分钟', value: 300 },
]
